// console.log('ok');
// 成功输出，环境搭建完毕
import React from 'react';
import ReactDOM from 'react-dom';

// 导入路由
import { Route, HashRouter as Router } from 'react-router-dom';

// 组件测试
// import Test from '@/components/Test';
// 导入自定义组件
import App from '@/components/App';
import Home from '@/components/Home';
import Login from '@/components/Login';
import Details from '@/components/Details';

ReactDOM.render(
  <div>
    <App>
      <Router>
        <Route exact path="/" component={Home} />
        <Route path="/login" component={Login} />
        <Route path="/details/:index" component={Details} />
      </Router>
    </App>
  </div>,
  document.getElementById('app')
);
